package com.resms.saas.consumer.service;

import com.resms.saas.api.EchoService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

/**
 * Created by sam on 2019/5/25.<br >
 */
@Component("echoServiceConsumer")
public class EchoServiceConsumer {
    @Reference(interfaceName = "echoService",interfaceClass = EchoService.class,version = "0.1.0",check = false)
    private EchoService service;

    public String doSayHello(String name){
        return service.sayHello(name);
    }
}
